package com.student.liu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.student.liu.entity.Waiter;

import java.util.Map;

/**
 * 用户类 Service
 */
public interface IWaiterService extends IService<Waiter> {


    /**
     * 登录
     * @param waiter
     * @return
     */
    Integer login(Waiter waiter);

    /**
     * 修改密码
     * @param
     */
    void Change (String username ,String password);

    /**
     * 确认密码
     * @param
     */
    Integer determine (String username , String password);
    /**
     * 注册
     * @param waiter
     */
    void register(Waiter waiter);

    /**
     * 禁用用户
     * @param waiterId
     */
    void disableWaiter(Integer waiterId);

    IPage<Map<String, Object>> waiterPage(Integer pageIndex, Integer pageSize, String name);

}
